
{extend name="common/public" /}
{block name="content"}

<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">订单管理</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <form action="{:url()}">
            <input type="text" style="width: 300px" value="{$Request.get.searchWords}" name="searchWords" placeholder="订单号|下单人|电话号码|搜索"/>
            <select name="order_status" data-am-selected="{searchBox: 2}">
                <option value="5" {eq name="info.order_status" value="5"}selected{/eq}>全部</option>
                <option value="0" {eq name="info.order_status" value="0"}selected{/eq}>待接单</option>
                <option value="1" {eq name="info.order_status" value="1"}selected{/eq}>已接单</option>
                <option value="2" {eq name="info.order_status" value="2"}selected{/eq}>已完成</option>
                <option value="6" {eq name="info.order_status" value="6"}selected{/eq}>已取消</option>
            </select>
            {eq name="ADMINTYPE" value="1"}
            <select name="region_id" data-am-selected="{searchBox: 2}">
                <option value="0" {eq name="info.region_id" value="0"}selected{/eq}>全部片区</option>
                {foreach $region as $v}
                <option value="{$v.id}" {eq name="info.region_id" value="$v.id"}selected{/eq}>{$v.name}</option>
                {/foreach}
            </select>
            {/eq}
            <button type="submit" class="am-btn am-btn-xs am-btn-default am-btn-success"><span class="am-icon-search"></span> 确定</button>
        </form>
        <div class="widget-body  widget-body-lg am-fr">

            <table width="100%" class="am-table am-table-compact am-table-bordered tpl-table-black ">
                <thead>

                <tr>
                    <th class="am-lg-text-center">
                        订单号</th>
                                            <th class="am-lg-text-center">
                                                        头像</th>

                                            <th class="am-lg-text-center">
                                                        所属片区</th>

                                            <th class="am-lg-text-center">
                                                        回收类型</th>
                                            <th class="am-lg-text-center">
                                                        下单人</th>
                    <th class="am-lg-text-center">
                        住宅类型</th>
                                            <th class="am-lg-text-center">
                                                        下单人电话</th>
                                            <th class="am-lg-text-center">
                                                        预估重量</th>
                                        <th class="am-lg-text-center">
                                            预约时间</th>
                                            <th class="am-lg-text-center">
                                                        下单时间</th>
                                            <th class="am-lg-text-center">
                                                        订单状态</th>
                                        <th>操作</th>
                </tr>
                </thead>
                <tbody>
                
                    {foreach $list as $v}
                
                <tr class="gradeX">
                    <td class='am-lg-text-center'>                                {$v.order_number}</td>
                    <td class='am-lg-text-center'>                                <img src="{$v.headimgurl}" style="width:50px;height:50px;"></td>

                    <td class='am-lg-text-center'>                                {$v.region_name}</td>

                    <td class='am-lg-text-center'>                                {$v.type_name}</td>

                    <td class='am-lg-text-center'>                                {$v.true_name}</td>
                    <td class='am-lg-text-center'>
                        {$v.address_type =="1"?"住宅 ":""}{$v.address_type =="2"?"商铺":""}{$v.address_type =="3"?"写字楼":""}{$v.address_type =="4"?"工厂":""}
                    </td>
                    <td class='am-lg-text-center'>                                {$v.phone}</td>
                        
                    <td class='am-lg-text-center'>          {$v.weight_type ==1?"20-50公斤":""}
                                                            {$v.weight_type ==2?"50-100公斤":""}
                                                            {$v.weight_type ==3?"100公斤以上":""}
                    </td>
                        
                    <td class='am-lg-text-center'>                                {$v.appointment_date} {$v.appointment_time}</td>
                    <td class='am-lg-text-center'>                                {$v.create_time}</td>

                    <td class='am-lg-text-center' style="color: red;">
                        {$v.order_status ==0?"未接单":""}{$v.order_status ==1?"已接单":""}{$v.order_status ==2?"已完成":""}{$v.order_status ==6?"已取消":""}
                    </td>
                        
                                            <td>
                            
                            <div class="tpl-table-black-operation">
                                <a onclick="openUrl('{:url('info',['id'=>$v['id']])}')">
                                    <i class="am-icon-eye"></i> 详情信息
                                </a>
                             <!--   <a href="javascript:;" class="tpl-table-black-operation-del">
                                    <i class="am-icon-trash"></i> 删除
                                </a>-->
                            </div>
                            
                        </td>

                </tr>
                
                    {/foreach}
                


                </tbody>
            </table>
                {$list|raw}
            
        </div>
    </div>
</div>

    {/block}

    {/extend}
